#ifndef __APP_H__
#define __APP_H__

	typedef enum states 
	{ 
	   LOCK_DISABLED = 0,
	   LOCK_CLOSED 	 = 1,
	   LOCK_OPENED 	 = 2,
	   LOCK_WAITING	 = 3
	} STATES;

	typedef enum inputs
	{ 		
		S1_INTERRUPTED = 1,
		S2_INTERRUPTED = 2,
		R_CMD_ENABLE   = 3,
		R_CMD_FEEDBACK = 4,
		R_CMD_DISABLE  = 5,
		R_NO_FEEDBACK  = 6
	} INPUTS;

	typedef enum outputs
	{
		OPEN_LOCK=1,
		CLOSE_LOCK=2,
		ENABLE_LOCK=3,
		SEND_MSG=4
	} OUTPUTS;




	
	#define  duty_opened	1100 //2000
	#define  duty_closed	2000 //1100
	#define  LOCK_NUM		'2'
	#define  LOCK_COUNT		'2'
	
#endif
